package org.akomantoso.core.util;

public final class StringUtil {

	private StringUtil(){}
	
	public static String deleteAnyControlChar(String inString) {
		StringBuilder sb = new StringBuilder();
		char[] chars = inString.toCharArray();
		for (int i = 0 , n = chars.length; i < n; i++) {
			if (chars[i] == '\t' || chars[i] == '\n') {
				continue;
			}
			sb.append(chars[i]);
		}
		return sb.toString();
	}
}